package com.shadowtorcher.soulknife.parser;
/*
 * Copyright (C)  li, Shadow Torcher project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import com.shadowtorcher.soulknife.SoulKnifeDB;
import com.shadowtorcher.soulknife.util.Logger;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class SoulKnifeConfig {
    public static String SqlDriver;
    public static String Host;
    public static String Port;
    public static String Username;
    public static String Password;
    public static String Schemas;

    static {
        SqlDriver = System.getenv("SOUL_KNIFE_DRIVER");
        Host = System.getenv("SOUL_KNIFE_HOST");
        Port = System.getenv("SOUL_KNIFE_PORT");
        Username = System.getenv("SOUL_KNIFE_USER");
        Password = System.getenv("SOUL_KNIFE_PASSWORD");
        Schemas = System.getenv("SOUL_KNIFE_SCHEMA");
    }

    public String toString() {
        return "SqlDriver: " + SqlDriver + "\n" +
                "Host: " + Host + "\n" +
                "Prot: " + Port + "\n" +
                "Schemas: " + Schemas + "\n" +
                "Username: " + Username + "\n" +
                "Password: " + Password + "\n";
    }
}
